package com.zr.corporatefactory.service.impl;

import com.zr.corporatefactory.mapper.UserMapper;
import com.zr.corporatefactory.model.User;
import com.zr.corporatefactory.model.UserLogin;
import com.zr.corporatefactory.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.validation.Valid;
import java.util.List;

/**
 * Created by 天赐 on 2019/12/24.
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(UserLogin userLogin) {
        User user = userMapper.login(userLogin);

        return user;
    }
}
